class BusinessError(Exception):
    """Business error"""

    def __init__(self, message: str, code: int = 1000):
        self.code = code
        self.message = message
        super().__init__(self.message)


class ApiRequestError(Exception):

    def __init__(self, code, msg):
        self.code = code
        self.msg = msg
        super(ApiRequestError, self).__init__(msg)
